package burp;

/**
 * Created by shuaidong on 2017/6/24.
 */
public class Os {

    public enum OsType {
        MAC,WINDOWS,UNKOWNS
    }

    public static OsType checkOs(){
        String os = System.getProperty("os.name").toLowerCase();
        if (os.indexOf("mac")>=0){
            return OsType.MAC;
        }
        if (os.indexOf("windows")>=0){
            return OsType.WINDOWS;
        }

        return OsType.UNKOWNS;
    }

}
